package com.iven.xie.fegin;

import com.iven.xie.hystrix.HelloRemoteFeginHystrix;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 *
 * @author iven.xie
 */
@FeignClient(name= "spring-cloud-business", fallback = HelloRemoteFeginHystrix.class)
public interface HelloRemoteFegin {

    @RequestMapping(value = "/hello")
    String hello(@RequestParam(value = "name") String name);

}
